set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_FIND_ROOT_PATH $ENV{LLVM_HOME})
set(CMAKE_C_COMPILER ${CMAKE_FIND_ROOT_PATH}/bin/clang)
set(CMAKE_CXX_COMPILER ${CMAKE_FIND_ROOT_PATH}/bin/clang++)
set(CMAKE_LINKER ${CMAKE_FIND_ROOT_PATH}/bin/ld.lld)
set(CMAKE_AR ${CMAKE_FIND_ROOT_PATH}/bin/llvm-ar)
set(CMAKE_RANLIB ${CMAKE_FIND_ROOT_PATH}/bin/llvm-ranlib)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_COMPILER_ID_RUN TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
